import Vue from 'vue'
const vm = new Vue({})
import { API_ROOT } from '../util/config'
import axios from 'axios'
import router from '../router'
import {
	setStore,
	getStore,
	removeStore
} from '../util/util';

export default {
  login({
    commit
  }, params) {
    return axios.get(API_ROOT + 'action=verifyTheStudent', {params}).then(response => {
      var obj=response.data.data.studentdata[0];
      obj.uface=params.uface
      obj.uname=params.uname      
      commit('USER_LOGIN', obj)
    })
  }
}
